<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@	page import="java.util.List,com.hqyj.ssm.dept.entity.DeptGen" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/reset.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/goodsList.css"/>
<style type="text/css"></style>
</head>
<body>
<div class="contain">
		<div class="header"></div>
		<div class="main">
			<ul class="left-head">
				<li class="public"><a href="${pageContext.request.contextPath}/toadd.do">添加部门</a></li>
				<li class="goods dgray"><a href="${pageContext.request.contextPath}/list.do">部门列表</a></li>
				<li class="goods dgray"><a href="${pageContext.request.contextPath}/exit.do">退出系统</a></li>
			</ul>
			<div class="right-cont">
				<div class="rightHead">
					<p class="rightH_p">部门列表</p>
				</div>
				<div class="rightBody">
					<!--2学生列表-->
					<div class="goodsList_div">
						<table id="mytable" border="">
							<tr class="table-head">
								<th>部门编号</th>
								<th>部门名称</th>
								<th>操作</th>
							</tr>
							
							<c:forEach items="${list}" var="dept">
							<tr class="table-list">
								<td>${dept.deptno}</td>
								<td>${dept.deptname}</td>
								<td class='edition'><a
									href="${pageContext.request.contextPath}/toedit.do?deptno=${dept.deptno}" class="eiditB">编辑</a>
									<a href="${pageContext.request.contextPath}/delete.do?deptno=${dept.deptno}" class="deleteB">删除</a></td>
							</tr>
							</c:forEach>
						</table>
					</div>
				</div>
				<div class="rightFoot">
					<!--脚注 -->
				</div>
			</div>
		</div>
	</div>
</body>
</html>